import requests

# 定义请求的 URL
url = 'https://push2his.eastmoney.com/api/qt/stock/kline/get'

# 定义请求的参数
params = {
    # "cb": "jQuery35106798447782642363_171548849328",
    "secid": "0.300215",
    "ut": "fa5fd1943c7b386f172d6893dbfba10b",
    "fields1": "f1,f2,f3,f4,f5,f6",
    "fields2": "f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61",
    "klt": "101",
    "fqt": "1",
    "beg": "0",
    "end": "20500101",
    "smplmt": "460",
    "lmt": "100000",
    "_": "1715488493229"
}

response = requests.get(url, params=params)

# 检查响应状态码
if response.status_code == 200:
    # 处理响应内容
    print(response.text)
else:
    # 处理请求失败
    print(f'请求失败，状态码: {response.status_code}')
